package server;
import java.util.logging.Level;
import java.util.logging.Logger;

public class ServerThreadPool implements Runnable{
	private static final Logger logger = Logger.getLogger(ServerThreadPool.class.getName());
	private int port;
	public void run() {
		MachineServer nc = new MachineServer(port);
		try {
			logger.log(Level.INFO,"启动服务器"+port);
			nc.bind();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	
}
